.pdf-viewer {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;

  .pdf-header {
    padding: 16px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;

    h2 {
      margin: 0;
      font-size: 18px;
      color: #333;
    }
  }

  .pdf-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 16px;
    overflow: auto;
    background-color: #f5f5f5;

    canvas {
      max-width: 100%;
      height: auto;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
  }

  .pdf-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 16px;
    background-color: #fff;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    gap: 12px;

    button {
      padding: 8px 16px;
      background-color: #1890ff;
      color: #fff;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 14px;

      &:disabled {
        background-color: #d9d9d9;
        cursor: not-allowed;
      }

      &:hover:not(:disabled) {
        background-color: #40a9ff;
      }
    }

    .page-info {
      display: flex;
      align-items: center;
      gap: 8px;

      input {
        width: 60px;
        padding: 6px 8px;
        border: 1px solid #d9d9d9;
        border-radius: 4px;
        text-align: center;
      }
    }
  }

  .loading {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;

    .loading-spinner {
      width: 40px;
      height: 40px;
      border: 3px solid #f3f3f3;
      border-top: 3px solid #3498db;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
  }

  .error-message {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #ff4d4f;
    font-size: 16px;
    text-align: center;
  }
}